home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Can't externalize an FW_CArcSha < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.9 KB  |  [TEXT/ttxt]

  1. Subject:     Can't externalize an FW_CArcShape
  2. Sent:        5/29/96 9:28 AM
  3. Received:    5/29/96 9:41 AM
  4. From:        Walter Holladay, walterh@corel.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. I am trying to externalize an FW_CArcShape object, and I'm not having
  9. much luck.  
  10. When I attempt an FW_WRITE_DYNAMIC_OBJECT, I get the following
  11. errors:
  12.  
  13. FWArDyna.cpp @286: GetNameToLabelMap().Find(tempName)
  14. FWArDyna.cpp @290: item
  15. FWArDyna.cpp @500: ("No registered archiving functions for class
  16. label", pair != NULL)
  17. FW_CFixedAllocator: An object of
  18. type
  19. FW_CPriv{BW|Color}PatternRep
  20. has
  21. not
  22. been
  23. deleted
  24. properly.
  25. FW_CFixedAllocator:
  26. An
  27. object
  28. of
  29. type
  30. FW_CPrivFontRep
  31. has
  32. not
  33. been
  34. deleted
  35. properly.
  36. FW_CFixedAllocator:
  37. An
  38. object
  39. of
  40. type
  41. FW_CPrivStyleRep
  42. has
  43. not
  44. been
  45. deleted
  46. properly.
  47. FW_CFixedAllocator:
  48. An
  49. object
  50. of
  51. type
  52. FW_CPrivInkRep
  53. has
  54. not
  55. been
  56. deleted
  57. properly.
  58.  
  59. The
  60. method
  61. the
  62. causes
  63. the
  64. problem
  65. is
  66. listed
  67. below:
  68.  
  69. //----------------------------------------------------------------------------------------
  70. //
  71. CPieContent::ExternalizePartKind
  72. //----------------------------------------------------------------------------------------
  73.  
  74. void CPieContent::ExternalizePartKind(Environment* ev, ODStorageUnit*
  75. storageUnit)
  76. {
  77.     // Write the two text data strings to storage
  78.     FW_PStorageUnitSink suSink(ev, storageUnit, kODPropContents,
  79. fPiePart->GetPartKind(ev));
  80.     FW_CWritableStream archive(suSink);
  81.     unsigned long stringCount = 1;
  82.     unsigned long arcCount = 0;
  83.     
  84.     archive << stringCount;
  85.     archive << fCentered;
  86.     archive << fTextData;
  87.     
  88.     arcCount = fArcCollection.Count();
  89.     archive <<
  90. arcCount;
  91.     
  92.     FW_TOrderedCollectionIterator<FW_CArcShape>    arcIter(&fArcCollection);
  93.     FW_CArcShape                                *arc;
  94.     for(arc = arcIter.First(); arcIter.IsNotComplete(); arc =
  95. arcIter.Next())
  96.     {
  97.         FW_WRITE_DYNAMIC_OBJECT(archive,arc,FW_CArcShape); // Causes
  98. errors!!!
  99.     }
  100. }
  101.  
  102.  
  103. What am I doing wrong?
  104.  
  105. Walter
  106.